dxp-ux
customerBillById(TMF678 GET) retriveCustomerBill By ID - V1
CASE 1 Unitary Test
This usecase is to retrieve bill history from evertec
URL
https://nonprod.esb.cloud.lla.com/dev/dxp-ux/dxp-ux/v1/PR/customerBill/1223334444
URI Param
name | type | description | required |
---|---|---|---|
businessId | string | 2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit. Expected one is "PR"-Puerto Rico | Y |
id | string | bill document unique identifier | Y |
Query Param
name | type | description | required |
---|---|---|---|
billingAccount.id | string | customer account id, without any "-" | Y |
billDate | string | bill date of the account example "2024-01-10" | Y |
string | pdf content flag allowed values are "true" | Y |
Header
name | value | description | required |
---|---|---|---|
client_id | string | The client_id identifying the channel. | Y |
client_secret | string | Password associated with the client_id. | Y |
X-Correlation-ID | string | Identifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request | Y |
targetSystem | string | Target system identifier Allowed values are "EVERTEC" | Y |
lob | string | Defines the line of business Allowed values are "POSTPAID" | Y |
channelId | string | Source system identifier Allowed values are "APP" | Y |
Request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/dxp-ux/dxp-ux/v1/PR/customerBill/252929057?billingAccount.id=821470133&billDate=2024-01-10&pdf=true' \
--header 'client_id: xxx' \
--header 'client_secret: yyy' \
--header 'X-Correlation-ID: 25-8412-9621-85415' \
--header 'targetSystem: EVERTEC' \
--header 'lob: POSTPAID' \
--header 'channelId: APP'
Response
200 OK
{
"billDocument": [
{
"content": "lODE4Yjc3NDM4MjhiZTc1MTdjYmNjOTU0Pl0KPj4Kc3RhcnR4cmVmCjUzNjkzNwolJUVPRgo=",
"@type": "pdfBinaryRepresentation"
}
]
}
name | value | description | required |
---|---|---|---|
billDocument | array | array object of bill document | N |
billDocument.content | string | binary pdf content of the bill document | N |
billDocument.@type | string | type of the content. Expected value is "pdfBinaryRepresentation" | N |